#pragma once
#include "irrlicht.h"
#include <string>
#include <windows.h>

#define JAUNE 0
#define ROUGE 1
#define VERT 2

/** @enum GUI_ELEMENT_ID
 *  @brief enum 
 *
  */
enum GUI_ELEMENT_ID{
    GUI_ID_DIALOG_WIIMOTE_FAIL,
    GUI_ID_DIALOG_LUNETTES_FAIL,
    GUI_ID_MAIN_WINDOW,
    GUI_ID_QUICK_MENU,
    GUI_ID_3D_BUTTON,
    GUI_ID_QUIT_BUTTON
};


/** @class Menu
 *  @brief Classe permettant d'afficher en stereo la scene
 *
 */
class Menu
{


public:
	Menu(irr::IrrlichtDevice *device, bool lunettes, bool wiimote);
    void drawAll();
    void setVisible();

    int getColor();
    int getSize();

    void nextSize();
    void nextColor();
    void previousSize();
    void previousColor();

    void toggleMainMenu();
    void setCursorDraggable();

    void activer3D();

private:
	irr::IrrlichtDevice *m_device;
    irr::gui::IGUIEnvironment *m_environment;

	irr::gui::IGUIStaticText  *etat_batterie;
	irr::gui::IGUIListBox *choix_couleur;
	irr::gui::IGUIListBox *choix_taille;

	irr::gui::IGUIWindow *fenetre_menu;
	irr::gui::IGUIWindow *menu_principal;

    irr::u32 GUI_last_change;
	int color;
	int size;

	bool lunettes_on;
	bool wiimote_on;

};
